#include <iostream>
#include <myslerp.h>
#include <Ogre.h>

using namespace std;
using namespace Ogre;

int main (void) {

  double x1, y1, z1, w1, x2, y2, z2, w2;
  double t;
  cout << "Introduzca el cuaternio 1" << endl;
  cout << "\tx: ";
  cin >> x1;
  cout << "\ty: ";
  cin >> y1;
  cout << "\tz: ";
  cin >> z1;
  cout << "\tw (en radianes): ";
  cin >> w1;  
  cout << "Introduzca el cuaternio 2" << endl;
  cout << "\tx: ";
  cin >> x2;
  cout << "\ty: ";
  cin >> y2;
  cout << "\tz: ";
  cin >> z2;
  cout << "\tw (en radianes): ";
  cin >> w2;
   
  cout << "Introduzca t: ";
  cin >> t;
  
  Quaternion p (w1, x1, y1, z1), q (w2, x2, y2, z2);
  
  cout << endl << endl << "SLERP = " << mySlerp (p, q, t) << endl;

  return 0;
}
